package cn.wolfcode.wolf2world.repository;

import cn.wolfcode.wolf2world.domain.Banner;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author 杨兴健
 * @Date 2020/8/19 18:27
 */
public interface BannerRepository extends MongoRepository<Banner,String> {
    /**
     * 根据类型，查询banner
     * @param typeTravel
     * @param pageable
     * @return
     */
    List<Banner> findByType(int typeTravel, Pageable pageable);
}
